<p xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<b>#{fn:substring('12345678',2,4)}-234</b>
<b>#{fn:substring('12345',-1,10)}-12345</b>
<b>#{fn:substring('begin 12345','12','100')}-</b>
</p>